home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / lcd_40a.zip / LCDTEST.BAT < prev    next >
DOS Batch File  |  1991-08-17  |  2KB  |  75 lines

  1. lcd %1 %2 %3
  2. if errorlevel 11 goto bad_parameter
  3. if errorlevel 10 goto cant_rename
  4. if errorlevel 9 goto bad_environment
  5. if errorlevel 8 goto out_of_memory
  6. if errorlevel 7 goto user_abort
  7. if errorlevel 6 goto no_parms
  8. if errorlevel 5 goto cant_create
  9. if errorlevel 4 goto database_error
  10. if errorlevel 3 goto scan_failed
  11. if errorlevel 2 goto cant_change
  12. if errorlevel 1 goto success_floppy
  13. if errorlevel 0 goto success
  14.  
  15. :cant_rename
  16.     echo.
  17.     echo LCDTEST: unable to rename directory
  18.     goto exit
  19.  
  20. :bad_parameter
  21.     echo.
  22.     echo LCDTEST: an invalid parameter was specified
  23.     goto exit
  24.  
  25. :cant_change
  26.     echo.
  27.     echo LCDTEST: unable to change to drive or directory
  28.     goto exit
  29.  
  30. :scan_failed
  31.     echo.
  32.     echo LCDTEST: scan of hard drive(s) failed
  33.     goto exit
  34.  
  35. :database_error
  36.     echo.
  37.     echo LCDTEST: database error
  38.     goto exit
  39.  
  40. :cant_create
  41.     echo.
  42.     echo LCDTEST: unable to create/remove directory
  43.     goto exit
  44.  
  45. :no_parms
  46.     echo.
  47.     echo LCDTEST: no parameters were specified
  48.     goto exit
  49.  
  50. :user_abort
  51.     echo.
  52.     echo LCDTEST: user aborted the program with the ESC key
  53.     goto exit
  54.  
  55. :bad_environment
  56.     echo.
  57.     echo LCDTEST: environment variable in wrong format
  58.     goto exit
  59.  
  60. :out_of_memory
  61.     echo.
  62.     echo LCDTEST: not enough memory to load database
  63.     goto exit
  64.  
  65. :success_floppy
  66.     echo.
  67.     echo LCDTEST: successful completion - ignoring floppy drive
  68.     goto exit
  69.  
  70. :success
  71.     echo.
  72.     echo LCDTEST: successful completion
  73.  
  74. :exit
  75.